package com.teach.service;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

import com.teach.dto.AuthUser;
import com.teach.dto.ReturnData;

/**<pre>
 * TODO : 用户相关业务
 * ClassName : com.teach.service.UserService
 * Author : J.L.Zhou
 * Date : 2020-03-04 17:46
 * Version : V1.0
 * Copyright 2020 jlzhou.top Inc. All rights reserved. 
 * Warning: this content is only for internal circulation of the company. It is forbidden to divulge it or use it for other commercial purposes</pre>
 */
@FeignClient("AUTH-V1")
public interface UserService {
	
	@GetMapping("/login")
	ReturnData<String> login(@RequestParam("userName") String userName,@RequestParam("userPwd") String userPwd);
	
	@GetMapping("/list")
	public ReturnData<List<AuthUser>> list();
	
	@GetMapping("/get/{id}")
	public ReturnData<AuthUser> get(@PathVariable("id")Long id);
}
